package pers.youqu.search.service;

import com.leyou.starter.elastic.entity.PageInfo;
import pers.youqu.search.dto.SearchParamDTO;
import pers.youqu.search.entity.Goods;
import reactor.core.publisher.Mono;

import java.util.List;
import java.util.Map;

/**
 * @author Jason
 * @version 1.0.0
 * @date 2020/12/13 10:18
 * @Description TODO
 */
public interface SearchService {
    Mono<List<String>> suggestionKey(String key);

    Mono<PageInfo<Goods>> pageList(SearchParamDTO searchParamDTO);

    Mono<Map<String, List<?>>> findFilters(SearchParamDTO searchParamDTO);

}
